package com.qf.hotel.controller.foodtype;

import com.qf.hotel.controller.BaseServlet;

import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@WebServlet("/foodtype06")
public class FoodTypeController06 extends BaseServlet {
    public String toIndexForward(HttpServletRequest request, HttpServletResponse response) {
        System.out.println("foodtype06调用转发到主页方法...");
        return "forward:/index.jsp";
    }

    public String toIndexRedirect(HttpServletRequest request, HttpServletResponse response) {
        System.out.println("foodtype06调用重定向到主页方法...");
        return "redirect:/index.jsp";
    }

    public String toError(HttpServletRequest request, HttpServletResponse response) {
        System.out.println("foodtype06调用重定向到Error方法...");
        return "000redirect:/index.jsp";
    }
}
